package com.yq.service.dao;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.yq.core.entity.SysPowerEntity;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 信  息: [yinquan] [2017-05-04] [1.0]
 * 描  述: Mapper 接口
 */
@Repository
public interface SysPowerMapper extends BaseMapper<SysPowerEntity, String> {

    /** 查找顶部菜单 **/
    List<Map<String, Object>> findMenuTopList(Map<String, Object> parameter);

    /** 查找左侧菜单 **/
    List<Map<String, Object>> findMenuLeftList(Map<String, Object> parameter);

    /** 菜单排序 **/
    long findMenuOrderMax(Map<String, Object> parameter);

    /** 菜单列表查询 **/
    List<Map<String, Object>> pageMenuList(Map<String, Object> parameter, PageBounds pageBounds);

    /** 菜单资源数据 **/
    List<Map<String, Object>> pageMenuDataList();

    /** 当前用户去权限数据 **/
    List<Map<String, Object>> pagePowerDataList(Map<String, Object> parameter);
}